package com.building.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by LH on 2021/4/7.  
*/

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "material_user")
public class User implements Serializable {
    /**
     * 用户id
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    /**
     * 用户头像
     */
    @TableField(value = "user_img")
    private String userImg;

    /**
     * 用户姓名
     */
    @TableField(value = "user_nick_name")
    private String userNickName;

    /**
     * 联系方式
     */
    @TableField(value = "user_phone")
    private String userPhone;

    /**
     * 角色(0业务员1项目经理)
     */
    @TableField(value = "user_role")
    private Integer userRole;

    /**
     * 用户名
     */
    @TableField(value = "user_name")
    private String userName;

    /**
     *
     */
    @TableField(value = "user_salt")
    private String userSalt;
    /**
     * 用户名密码
     */
    @TableField(value = "user_password")
    private String userPassword;

    /**
     * 类型（1采购商2加工厂企业3业务员）
     */
    @TableField(value = "user_type")
    private Integer userType;

    /**
     * 逻辑删除(0否、1是)
     */
    @TableField(value = "is_del")
    private Integer isDel;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    private Date createDate;

    /**
     * 修改时间
     */
    @TableField(value = "update_date")
    private Date updateDate;

    /**
     * 验证码
     */
    @TableField(exist = false)
    private String code;

    private static final long serialVersionUID = 1L;
}